<%-- 
    Document   : entryProductDetailList
    Created on : 08/04/2009, 08:56:54 AM
    Author     : Joel Chuca
--%>

<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="entryProductDetailList.title"/></title>
    <meta name="heading" content="<fmt:message key='entryProductDetailList.heading'/>"/>
    <meta name="menu" content="MaterialMenu"/>
</head>


<table class="tableGrey" border="0">
    <tbody>
        <tr>
            <td><s:textfield key="entryProduct.supplier.name" required="true" cssClass="text medium" disabled="true"  maxLength="20"/></td>
            <td><s:textfield key="entryProduct.date" required="true" cssClass="text medium" disabled="true"  /></td>
            <td><s:textfield key="entryProduct.coin.name" required="true" cssClass="text medium" disabled="true"  /></td>
        </tr>
    </tbody>
</table>
<table class="tableGrey" border="0">
    <tbody>
        <tr>
            <td><s:textfield key="entryProduct.totalPrice" required="true" disabled="true"  /></td>
        </tr>
    </tbody>
</table>

<c:set var="buttons">
    <c:if test="${ entryProduct.deleted }">
        <input type="button" style="margin-right: 5px" onclick="location.href='<c:url value="/editEntryProductDetail.html"/>'"
               value="<fmt:message key="button.add"/>" />
    </c:if>
    <c:if test="${ !entryProduct.deleted }">
        <input type="button" style="margin-right: 5px" onclick="location.href='<c:url value="/editEntryProductDetail.html"/>'"
               value="<fmt:message key="button.add"/>" disabled="true"/>
    </c:if>
    <input type="button" onclick="location.href='<c:url value="/finalizeEntryProductDetail.html"/>'"
           value="<fmt:message key="button.save"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<s:set name="entryProductDetails" value="entryProductDetails" scope="request"/>
<br><br>
<display:table name="entryProductDetails"  class="table" export="true" requestURI="" pagesize="25"
               list="entryProductDetails_1" id="entryProductDetails_1" >
    
        <display:column titleKey="entryProductDetail" href="editEntryProductDetail.html" paramId="id" paramProperty="id">
            <c:if test="${entryProductDetails_1.deleted }">
                <fmt:message key="entryProductDetail.edit"/>
            </c:if>
            <c:if test="${!entryProductDetails_1.deleted }">
                <img src="<c:url value="/images/alert.gif" />" alt="Alert" />
            </c:if>
        </display:column>

    <display:column property="product.nameLang" sortable="true" titleKey="product"/>
    <display:column property="product.descriptionLang" sortable="true" titleKey="product.description"/>
    <display:column property="sellPrice" sortable="true" titleKey="entryProductDetail.sellPrice"/>
    <display:column property="quantity" sortable="true" titleKey="entryProductDetail.quantity"/>
    <display:column property="unitPrice" sortable="true" titleKey="entryProductDetail.unitPrice"/>
    <display:column property="totalPrice" sortable="true" titleKey="entryProductDetail.totalPrice"/>

    <display:setProperty name="paging.banner.item_name" value="entryProduct detail"/>
    <display:setProperty name="paging.banner.items_name" value="entryProduct details"/>

    <display:setProperty name="export.excel.filename" value="EntryProductDetail List.xls"/>
    <display:setProperty name="export.csv.filename" value="EntryProductDetail List.csv"/>
    <display:setProperty name="export.pdf.filename" value="EntryProductDetail List.pdf"/>
    <display:setProperty name="paging.banner.some_items_found" value=""/>
    <display:setProperty name="paging.banner.all_items_found" value=""/>
</display:table>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    //highlightTableRows("entryProductDetailForm");
</script>